<!--Javascript-->
<script type="text/javascript" src="<?php echo base_url().'assets/js/jquery.min.js';?>"></script>
<script type="text/javascript" src="<?php echo base_url().'assets/js/bootstrap.min.js';?>"></script>
<script type="text/javascript" src="<?php echo base_url().'assets/js/bootstrap-datepicker.js';?>"></script>

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/lib/fancybox/source/jquery.fancybox.css?v=2.1.4" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.4"></script>

<!-- Optionally add helpers - button, thumbnail and/or media -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/lib/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.5"></script>

<!-- chosen -->
<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/chosen/chosen.jquery.min.js"></script>

<script type="text/javascript" src="<?php echo base_url(); ?>assets/lib/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

<!---------------Scroll To------------>
<script type="text/javascript" src="<?php echo $js_dir; ?>jquery.scrollto.min.js"></script>
<!---------scroll spy---------------------->
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/bootstrap.scrollspy.js"></script>


<script type="text/javascript">	
	var loader = "<img src='<?php echo base_url() ?>assets/img/ajax-loader.gif' >";
	var base_url = "<?php echo base_url() ?>";
	$(document).ready(function(){				
				
		$('#ss-bar').scrollSpy();		
		scrollToContainer($('#home-trigger'));
		$('.scroll-to').click(function(e){			
			e.preventDefault();
			var object = $(this);			
			scrollToContainer(object);
		});								
	});
	
	function scrollToContainer(object)
	{			
			object.parent().parent().children('li').removeClass('active');			
			var go = object.attr('href');
			
			if(go == "#top")
			{			
				scrollToTop();				
			}
			else
			{
				$(go).ScrollTo();
			}
						
			object.parent().addClass("active");
			
	}
	
	function scrollToTop()
	{
		$('body,html').animate({
		scrollTop: 0
		}, 800);
	}
</script>